package com.zdy.im.user.entity;


import com.sixeco.framework.common.api.ApiDesc;
import com.sixeco.framework.common.data.BaseEntity;
import com.sixeco.framework.core.db.ext.DS;
import com.zdy.im.user.ImDatasourceName;

/**
 * @Title: ImMessageRead.java
 * @Description: 消息状态表的数据模型
 * @Author 作者 : zdy
 * @CreateDate 创建时间: 2021-02-30
 * @version V1.0.0
 * ----------------------------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 * ----------------------------------------------------------------------------
 *
 */
@DS(ImDatasourceName.IM_DATA_NAME)
public class ImMessageRead extends BaseEntity {

private static final long serialVersionUID = 1L;


 		/** userId 用户id  */
 		@ApiDesc(value = "用户id", required = 0)
 		private long userId;

 		/** messageId 用户id，群组id  */
 		@ApiDesc(value = "用户id，群组id", required = 0)
 		private long messageId;

 		/** globalId 全局消息id  */
 		@ApiDesc(value = "全局消息id", required = 0)
 		private long globalId;

 		/** type 1用户 0 群组  */
 		@ApiDesc(value = "1用户 0 群组", required = 0)
 		private int type;


    public static ImMessageRead build(){
        return new ImMessageRead();
    }

 		public void setUserId( long userId){
 		 		this.userId = userId ; 
 		 		}
 		public ImMessageRead toUserId( long userId){
 		 		this.userId = userId ; 
 		 		 return this ;
 		}

 		public long getUserId(){
 		 		return this.userId;
 		}
 		public void setMessageId( long messageId){
 		 		this.messageId = messageId ; 
 		 		}
 		public ImMessageRead toMessageId( long messageId){
 		 		this.messageId = messageId ; 
 		 		 return this ;
 		}

 		public long getMessageId(){
 		 		return this.messageId;
 		}
 		public void setGlobalId( long globalId){
 		 		this.globalId = globalId ; 
 		 		}
 		public ImMessageRead toGlobalId( long globalId){
 		 		this.globalId = globalId ; 
 		 		 return this ;
 		}

 		public long getGlobalId(){
 		 		return this.globalId;
 		}
 		public void setType( int type){
 		 		this.type = type ; 
 		 		}
 		public ImMessageRead toType( int type){
 		 		this.type = type ; 
 		 		 return this ;
 		}

 		public int getType(){
 		 		return this.type;
 		}
}